package com.cskaoyan.bean.vo;

public class WXAuthLoginVo {
    /**
     * userInfo : {"avatarUrl":"","nickName":"user123"}
     * token : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ0aGlzIGlzIG1hcmtldCB0b2tlbiIsImF1ZCI6Ik1JTklBUFAiLCJpc3MiOiJNQVJLRVQiLCJleHAiOjE2NjI2MzY3ODUsInVzZXJJZCI6MSwiaWF0IjoxNjYyNjI5NTg1fQ.u3qfFqHGh_mcy09kmeG9dNm_0Qsw7p6cCWkOys1ZupY
     */
    private UserInfoEntity userInfo = new UserInfoEntity();
    private String token;

    public void setUserInfoEntity(String avatarUrl,String nickname){
        userInfo.setAvatarUrl(avatarUrl);
        userInfo.setNickName(nickname);
    }

    public void setUserInfo(UserInfoEntity userInfo) {
        this.userInfo = userInfo;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public UserInfoEntity getUserInfo() {
        return userInfo;
    }

    public String getToken() {
        return token;
    }

    public class UserInfoEntity {
        /**
         * avatarUrl :
         * nickName : user123
         */
        private String avatarUrl;
        private String nickName;

        public void setAvatarUrl(String avatarUrl) {
            this.avatarUrl = avatarUrl;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getAvatarUrl() {
            return avatarUrl;
        }

        public String getNickName() {
            return nickName;
        }
    }
}
